<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<span id="qqLoginBtn"></span>
	<form action="/qq/login/validate" id="loginValidate" method="post">
		<input type="hidden" name="lastVisit" value="${lastVisit}" />
	</form>
	<button id="demo-login">demo login</button>
</body>
<script type="text/javascript"
	src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js"
	data-appid="${appid}" data-redirecturi="${redirectUri}" charset="utf-8"></script>
<script type="text/javascript">
	QC.Login({
		btnId : "qqLoginBtn" //插入按钮的节点id
	});

	$(function() {
		$("#demo-login").on("click", function() {
			$("#loginValidate").submit();
		});
	});
</script>
</html>